<template>
	<view>
		<!-- 操作菜单 -->
		<view class="papar-left-popup-mask" v-show="show" @click="hidepopup"></view>
		<view class="papar-left-popup" v-show="show">
			<view class="u-f-ac" hover-class="papar-left-popup-h" @click="addFriend">
				<view class="icon iconfont icon-sousuo"></view> 
				加糗友
			</view>
			<view class="u-f-ac" hover-class="papar-left-popup-h" @click="clear">
				<view class="icon iconfont icon-qingchu"></view> 
				清除缓存
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			show:Boolean
		},
		methods:{
			hidepopup(){
				this.$emit('hide');
			},
			addFriend(){
				this.$emit('addFriend');
			},
			clear(){
				this.$emit('clear');
			}
		}
	}
</script>

<style lang="scss" scoped>
	.papar-left-popup-mask{
		position: fixed;
		right: 0;
		left: 0;
		top: 0;
		bottom: 0;
		z-index: 1999;
	}
	.papar-left-popup{
		position: fixed;
		right: 0;
		top: 10rpx;
		background: #FFFFFF;
		z-index: 2000;
		width: 55%;
		box-shadow: 1rpx 1rpx 20rpx 20rpx #CCCCCC;
		.papar-left-popup-h{
			background: #EEEEEE;
		}
		view{
			padding: 20rpx;
			font-size: 35rpx;
			view{
				margin-right: 10rpx;
				font-weight: bold;
			}
		}
	}
</style>
